package v1

import (
	"github.com/gin-gonic/gin"
	"tools-api/src/routes/response"
)

func NoRouterDefine(router *gin.Engine) {
	router.NoRoute(func(ctx *gin.Context) {
		response.FailByCode(ctx, response.NotFound, "请求失败：路由不存在")
	})
}
